package com.woniuxy.mesboot.mapper;

import com.woniuxy.mesboot.dto.UserDTO;
import com.woniuxy.mesboot.entity.SysUser;
import com.woniuxy.mesboot.vo.UserVO;

import java.util.List;

/**
* @author 21925
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2023-05-24 08:54:01
* @Entity com.woniuxy.mesboot.entity.SysUser
*/
public interface SysUserMapper {

    SysUser selectByUsername(String username);

    String selectPwdById(Long id);

    List<UserVO> selectAll(UserDTO user);

    UserVO selectByNameAndPwd(UserDTO userDTO);

    int deleteByPrimaryKey(Long id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long id);

    UserVO selectByName(String userName);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

}
